students = [
    {'name': 'Alice', 'age': 25},
    {'name': 'Bob', 'age': 22},
    {'name': 'Charlie', 'age': 23}
]
 
# 按年龄排序
sorted_students = sorted(students, key=lambda x: x['age'])
print(sorted_students)
# 输出：[{'name': 'Bob', 'age': 22}, {'name': 'Charlie', 'age': 23}, {'name': 'Alice', 'age': 25}]